package com.day14;

import java.io.FileNotFoundException;
import java.io.IOException;

/**
 * 方法重写的规则之一:
 * 子类重写的方法抛出的异常类型不大于父类被重写的方法抛出的异常类型
 */
public class OverrideTest {


    public static void main(String[] args) {

    }

    public void method() throws IOException {

    }
}

class SubClass extends OverrideTest {

    public void method() throws FileNotFoundException {

    }
}